package cn.wetcland.urban.framework.controller;

import cn.dev33.satoken.stp.StpUtil;
import cn.wetcland.urban.common.AjaxResponse;
import cn.wetcland.urban.framework.utils.StpDriverUtil;
import cn.wetcland.urban.generator.domain.UtNotice;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin1")
public class Test2Controller {

    @RequestMapping("test1")
    public AjaxResponse test1() {
        System.out.println(StpUtil.getLoginId());
        return AjaxResponse.success(new UtNotice());
    }

    @RequestMapping("test2")
    public AjaxResponse test2() {
        System.out.println(StpDriverUtil.getLoginId());
        return AjaxResponse.success(new UtNotice());
    }

}